package ooday03;

/**
 * @author Administrator
 */
public class Fish extends Animals implements Swim {
    Fish(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(name + "喜欢吃虾米");
    }
    @Override
    public void swim(){
        System.out.println(name+"会自由泳");
    }
}

